﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SockLib.Device
{
  public   class DeviceModel
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string Uid { set; get; }

        /// <summary>
        /// 是不是中心
        /// </summary>
        public bool IsCenter { set; get; }

        /// <summary>
        /// 设备组号
        /// </summary>
        public string DeviceGroup { set; get; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string MobileNo { set; get; }


        /// <summary>
        /// 数据转发结构
        /// </summary>
      public   struct SendMsg
        {
            /// <summary>
            /// 转发目标
            /// </summary>
            public string TargetUid;

            /// <summary>
            /// 转发数组
            /// </summary>
            public byte[] SendBuffer;

            /// <summary>
            /// 设备功能码
            /// </summary>
            internal Converts.DeviceOper DeviceOper;   

            /// <summary>
            /// 需要传递的其他参数
            /// </summary>
            public object Params;      
        }


    }
}
